//
//  NRWBuyCarListApi.m
//  NRWMall
//
//  Created by 张记 on 2018/6/12.
//  Copyright © 2018年 com.anpxd. All rights reserved.
//

#import "NRWBuyCarListApi.h"

@implementation NRWBuyCarListApi
//买车列表
- (NSString *)requestUrl {
    return [NSString stringWithFormat:@"%@%@", erpApi(), @"/controller/getCarList"];
}

- (YTKRequestMethod)requestMethod {
    return YTKRequestMethodPOST;
}

- (id)requestArgument {
    
    NSMutableDictionary *dictM = [self.params mj_keyValues];
    
    [dictM setValue:@20 forKey:@"carSaleState"];
    
    return dictM;
}

- (NSInteger)cacheTimeInSeconds {
    
    if (self.needCache) {
        return kOneMinute;
    }
    return -1;
}

- (NRWBuyCarListParameterModel *)params {
    
    if (_params == nil) {
        _params = [[NRWBuyCarListParameterModel alloc] init];
        _params.pageSize = 15;
        _params.pageIndex = 1;
        _params.marketId = @"1";
    }
    return _params;
}

@end
